منابع مشابه
Typing and semantics of asynchronous arrows in JavaScript
Asynchronous programs in JavaScript using callbacks and promises are di cultto write correctly. Many programs have subtle errors due to the unwantedinteraction of event handlers. To x such errors, the programmer is burdenedwith explicit registration and de-registration of event handlers. This producesfragile code which is di cult to read and maintain.Arrows, a generalization...
متن کاملAn Operational Semantics for JavaScript
We define a small-step operational semantics for the ECMAScript standard language corresponding to JavaScript, as a basis for analyzing security properties of web applications and mashups. The semantics is based on the language standard and a number of experiments with different implementations and browsers. Some basic properties of the semantics are proved, including a soundness theorem and a ...
متن کاملInferring Types for Asynchronous Arrows in JavaScript
Asynchronous programming with callbacks in JavaScript leads to code that is difficult to understand and maintain. Arrows, a generalization of monads, are an elegant solution to asynchronous program composition. Unfortunately, improper arrow composition can cause mysterious failures with subtle sources. We present an arrows-based DSL in JavaScript which encodes semantics similar to ES6 Promises ...
متن کاملAsynchronous JavaScript Technology and XML (AJAX)
AJAX is a web development technique for building responsive web applications. The paper gives an overview of the AJAX technique and explores ideas for teaching this technique in modules related to Internet technologies and web development. Appropriate examples for use in lab sessions are also suggested.
متن کاملCharacterizing and refactoring asynchronous JavaScript callbacks
Modern web applications make extensive use of JavaScript, which is now estimated to be one of the most widely used languages in the world. Callbacks are a popular language feature in JavaScript. However, they are also a source of comprehension and maintainability issues. We studied several features of callback usage across a large number of JavaScript applications and found out that over 43% of...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: ACM SIGPLAN Notices
سال: 2017
ISSN: 0362-1340,1558-1160
DOI: 10.1145/3170472.3133846